import request from '@/utils/request'

// 定义多个方法
const apiMethods = {
  path: '/chat',
  history_list(params) {
    return request({
      url: this.path + '/history_list',
      method: 'get',
      params
    })
  },
  ready(params) {
    return request({
      url: this.path + '/ready',
      method: 'get',
      params
    })
  },
  conversations(params) {
    return request({
      url: this.path + '/conversations',
      method: 'get',
      params
    })
  }
}

export default apiMethods
